package com.mgg.payment.model.wxpay;

import com.mgg.payment.response.WxpayTradeAppPayResponse;
import com.mgg.payment.response.WxpayTradeRefundPayResponse;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface WxPayApi {

	/**
     * 统一下单
     * @param body
     * @return
     */
    @POST("/pay/unifiedorder")
    Call<WxpayTradeAppPayResponse> unifiedorder(@Body RequestBody body);

    /**
     * 申请退款
     * @param body
     * @return
     */
    @POST("/secapi/pay/refund")
    Call<WxpayTradeRefundPayResponse> refund(@Body RequestBody body);
}
